<template>
    <div class="users">
        <h1>Hello</h1>
        <ul>
            <li v-for="user in users" :key="user.id">
                {{user}}
            </li>
        </ul>
    </div>
</template>

<script>
export default {
    name: 'users',
    data() {
        return {
            users:["Henry","Bucky","Luffy"]
        }
    }
}
</script>

<!-- scoped:域，CSS只在当前组件生效 -->
<style scoped>
h1 {
  color: green;
}
</style>
